package cn.wolfcode.transfer.mapper;

import cn.wolfcode.transfer.domain.Choice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChoiceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Choice record);

    Choice selectByPrimaryKey(Long id);

    List<Choice> selectAll();

    int updateByPrimaryKey(Choice record);

    List<Choice>  pollStatus(@Param("activity_id") Long id,@Param("user_id") Long UserId);

    List<Choice> getByActivityItemId(Long id);

    List<Choice> getByActivityId(Long id);
}